
//事件监控的对话框
var eventcontrolDlg = null;

function eventcontrolDlgInit(){
	if(eventcontrolDlg==null){//如果对话框不存在，那么创建
		eventcontrolDlgCreate();
		eventcontrolDlg.zindex();
	}else if(itemExistArray(eventcontrolDlg,minDlgArray)){//如果对话框存在，且对话框处在最小化的状态
		//调用minbar.js之中的还原方法
		resizeMinDlgFuncBySecondaryfuncDiv(eventcontrolDlg);
	}
	eventcontrolDlg.zindex();
}	

//创建对话框
function eventcontrolDlgCreate(){
	eventcontrolDlg =  $.dialog({
		title: '事件监控',
		content: 'url:jsp/sjgl/sjjk.jsp',
		dlgDivId: "eventcontrolDlgId",
		resize: false,
		max: false,
		left:(document.documentElement.clientWidth-830)/2+"px",
		top:'200px',
		width:'550px',
		height:'350px',
		min:eventcontrolDlgMinFunction,
		close:eventcontrolDlgCloseFunction,
	});
}

//关闭的方法
function eventcontrolDlgCloseFunction(){
	eventcontrolDlg = null;
}

//最小化的方法
function eventcontrolDlgMinFunction(){
	minDlgByAnimate(eventcontrolDlg);
}
